
FROM python:3.8-slim-buster

RUN /usr/local/bin/python -m pip install --upgrade pip -i https://pypi.tuna.tsinghua.edu.cn/simple
WORKDIR /app

COPY requirements.txt requirements.txt 
RUN pip3 install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple

COPY . .

CMD [ "python3", "-m" , "flask", "run", "--host=0.0.0.0"]